<?php
include_once( 'init.php' );
$unread = $c->unread($uid);
$urc = $unread["cmt"]?$unread["cmt"]:0;
$urd = $unread["dm"]?$unread["dm"]:0;
$urm = $unread["mention_status"]?$unread["mention_status"]:0;
$urmc = $unread["mention_cmt"]?$unread["mention_cmt"]:0;
$urs = $unread["status"]?$unread["status"]:0;
echo "{\"cmt\":".$urc.", \"msg\":".$urd.", \"mtn\":".$urm.", \"mtnc\":".$urmc.", \"sta\":".$urs."}";
?>